package com.ycz.pattern.behaviour.visitorpattern;

/**
 * @author yancz
 * @ClassName ComputerPartDisplayVisitor
 * @description: TODO
 * @date 2023-12-01 16:51:33
 * @version: 1.0
 */
public class ComputerPartDisplayVisitor implements ComputerPartVisitor {
    @Override
    public void visit(Keyboard keyboard) {
        System.out.println("Displaying keyboard！");
    }

    @Override
    public void visit(Monitor monitor) {
        System.out.println("Displaying monitor！");
    }

    @Override
    public void visit(Mouse mouse) {
        System.out.println("Displaying mouse！");
    }

    @Override
    public void visit(Computer computer) {
        System.out.println("Displaying computer！");
    }
}
